package cn.hbu.zlfw.dic.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import cn.hbu.zlfw.common.base.service.impl.BaseServiceImpl;
import cn.hbu.zlfw.common.util.PageModel;
import cn.hbu.zlfw.dic.dao.DicSubjectDao;
import cn.hbu.zlfw.dic.entity.DicSubject;
import cn.hbu.zlfw.dic.service.DicSubjectService;
/**
 * 
 * @ClassName: DicSubjectServiceImpl 
 * @Description: 学科字典表service接口实现
 * @author 王鹏伟<1223443289@qq.com>
 * @date 2017年11月7日 下午9:52:35  
 * @version V1.0
 */
@Service("dicSubjectService")
@Transactional
public class DicSubjectServiceImpl extends BaseServiceImpl<DicSubject, String> implements DicSubjectService{
	
	@Autowired
	private DicSubjectDao dicSubjectDao;
	/*
	 * (non-Javadoc)
	 * @see cn.hbu.zlfw.dic.service.DicSubjectService#getSubjectByCode(java.lang.String)
	 */
	@Override
	public String getSubjectByCode(Integer typeCode) {
		return this.dicSubjectDao.getSubjectByCode(typeCode);
	}
	/*
	 * (non-Javadoc)
	 * @see cn.hbu.zlfw.dic.service.DicSubjectService#listSubjectsToRoot(cn.hbu.zlfw.common.util.PageModel)
	 */
	@Override
	public PageModel<DicSubject> listSubjectsToRoot(PageModel<DicSubject> pageModel) {
		return this.dicSubjectDao.listSubjectsToRoot(pageModel);
	}
	
}
